//会员表
const memberRouter = require('./member');

//后台路由
const meetRouter = require('./admin/meet');

const buildRouter = require('./admin/build');

const meetSubjectRouter = require('./admin/meet_subject');

const speakHostRouter = require('./admin/speak_host');

const meetScheduleRouter = require('./admin/meet_schedule');

//微信端路由
const buildWxRouter = require('./wx/build');

const subjectWxRouter = require('./wx/meet_subject');

const speakHostWxRouter = require('./wx/speak_host');

const meetScheduleWxRouter = require('./wx/meet_schedule');

const meetOrderWxRouter = require('./wx/meet_order');

const API_PATH_ADMIN = '/api/v1.0/admin/'
const API_PATH_WX = '/api/v1.0/wx/'
const API_PATH = '/api/v1.0/'
module.exports = function (app) {
    //会员
    app.use(API_PATH_WX + 'members', memberRouter);

    //后台路由
    app.use(API_PATH_ADMIN + 'meet', meetRouter);

    app.use(API_PATH_ADMIN + 'build', buildRouter);

    app.use(API_PATH_ADMIN + 'meetSubject', meetSubjectRouter);

    app.use(API_PATH_ADMIN + 'speakHost', speakHostRouter);

    app.use(API_PATH_ADMIN + 'meetSchedule', meetScheduleRouter);

    //微信端路由
    app.use(API_PATH_WX + 'build', buildWxRouter);

    app.use(API_PATH_WX + 'subject', subjectWxRouter);

    app.use(API_PATH_WX + 'speakHost', speakHostWxRouter);

    app.use(API_PATH_WX + 'schedule', meetScheduleWxRouter);

    app.use(API_PATH_WX + 'order', meetOrderWxRouter);

};